import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './util/http'
import { HashRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react'
import {persistor,store} from './redux/store'
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
    <HashRouter>
      <App />
    </HashRouter>
    </PersistGate>
  </Provider>

);
